﻿@*
//***********************************************************************************//
// Autor:  					                					     				*//
//***********************************************************************************//
// Create()				Acceso ADMINISTRADOR			        	        		*//
// Vista que permite la creación de una nueva Marca.                                *//
// _________________________________________________________________________________*//
*@

@model SIBI.Models.Marca

@{
    ViewBag.Title = "Crear";
}

<h2>Crear</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Marca</legend>

        <div class="editor-label">
            Nombre (*)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.cnom)
            @Html.ValidationMessageFor(model => model.cnom)
            <div class="error">@ViewBag.DuplicateMarca</div>
        </div>

        <p>
            <input type="submit" value="Crear" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Menú Anterior", "Index")
</div>
